Combined NMES and motor control